package com.example.dafafastlib.Network;

import android.text.TextUtils;

/**
 * Created by mocen_dafa on 2018/3/14.
 */

public class TaskException extends Exception {
    public int code;
    public String msg;

    public TaskException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getMessage() {
        if (!TextUtils.isEmpty(msg)) {
            return msg;
        }else{
            return "";
        }
    }
}
